package cn.net.sinodata.system.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.net.sinodata.system.domain.PmPollingRole;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.net.sinodata.common.excel.annotation.ExcelDictFormat;
import cn.net.sinodata.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 轮询规则配置视图对象 pm_polling_role
 *
 * @author yinliangyun
 * @date 2025-10-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PmPollingRole.class)
public class PmPollingRoleVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String id;

    /**
     * 轮询类型
     */
    @ExcelProperty(value = "轮询类型")
    private String pollingType;

    /**
     * 开始时间
     */
    @ExcelProperty(value = "开始时间")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date startTime;

    /**
     * 截至时间
     */
    @ExcelProperty(value = "截至时间")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date endTime;

    /**
     * 轮询频次
     */
    @ExcelProperty(value = "轮询频次")
    private Long pollingFrequency;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remarks;

}
